package com.qianli.cashmama.trade.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.fqgj.common.utils.StringUtils;
import com.qianli.cashmama.trade.dao.TBillExtensionRecordDao;
import com.qianli.cashmama.trade.entity.TBillExtensionRecordEntity;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.Map;

/**
 * User: zsp
 * Date: 2020-03-29
 * Time: 18:59:05.507
 */

@Repository
public class TBillExtensionRecordDaoImpl extends AbstractBaseMapper<TBillExtensionRecordEntity> implements TBillExtensionRecordDao {

    @Override
    public TBillExtensionRecordEntity selectByPayBizNo(String payBizNo) {
        if (StringUtils.isEmpty(payBizNo)) {
            return null;
        }
        Map<String, Object> map = new HashMap<>();
        map.put("payBizNo", payBizNo);
        return getSqlSession().selectOne(getStatement("selectByPayBizNo"), map);
    }
}